<?php 
if(KT!='KhiThe') exit;
class sbLink_model extends khithe_mysql{
	
	public function get_link($i='')
	{		
		$limit = $i!=''?"limit 0, $i ":'';
		
		$query = "SELECT * FROM ".links."  WHERE `Status`='true' ORDER BY `Order` ASC, ID DESC $limit ";
		$note = parent::selectMySQL($query);	
		while ($row = mysql_fetch_assoc($note)){
			
			$arr[] = $row; 
		}
		parent::CloseConnection();
		
		return $arr;
	}
}
?>